package com.roadjava.rbac.bean.req;

import com.roadjava.rbac.constants.CommonConstants;
import lombok.Data;

/**
 * @author zhaodaowen
 *
 */
@Data
public class BasePageReq {
    /**
     * 当前是第几页
     */
    private Long pageNow = CommonConstants.DEFAULT_PAGE_NOW;
    /**
     * 每页有多少条
     */
    private Long pageSize = CommonConstants.DEFAULT_PAGE_SIZE;

    public Long getStart() {
        return  (pageNow - 1) * pageSize;
    }
}
